/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Instrutor;

import Geral.ErroInternoException;
import java.io.Serializable;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Ivaldo
 */
@Local
public interface IRepositorioInstrutor extends Serializable {
    
    public void adicionar(Instrutor instrutor) throws ErroInternoException, InstrutorExistenteException;
    public void remover(long id_instrutor) throws ErroInternoException, InstrutorInexistenteException;
    public Instrutor buscarInstrutor(long id_instrutor) throws ErroInternoException, InstrutorInexistenteException;
    public Instrutor buscarInstrutorPorNome(String nome) throws ErroInternoException, InstrutorInexistenteException;
    public void atualizar(Instrutor instrutor) throws ErroInternoException, InstrutorInexistenteException;
    public Instrutor loginInstrutor(String login, String senha) throws ErroInternoException, InstrutorInexistenteException;
    public List<Instrutor> listaInstrutor(Instrutor instrutor) throws ErroInternoException;
    
}
